﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Web.Formly;

namespace ConsoleApplication1
{
    public class MovimentiDetailMetadata
    {
        //[FormFieldAttribute(Type = FormFieldTypes.Select)]
        //[SelectTemplateOptions(Label = "Articolo",
        //                       Placeholder = "Indicare l'articolo...",
        //                       Required = true,
        //                       Callback = "/api/Common/LoadArticolo", ForceLoad = true)]
        //public Guid Articolo { get; set; }

        [FormFieldAttribute(Type = FormFieldTypes.Number)]
        [NumericTemplateOptions(Label = "Quantità", Placeholder = "Quantità...", Required = true, Disabled = false)]
        public decimal Quantita { get; set; }

        [FormFieldAttribute(Type = FormFieldTypes.Number)]
        [NumericTemplateOptions(Label = "Prenotata", Placeholder = "Indica la quantità da considerare prenotata...",
            Required = false, Disabled = false, Value=0.1)]
        public decimal Prenotata { get; set; }
    }
}
